int Red = 11;
int Green = 10;
int Blue = 9;
int fadeDelay = 10;
int fadeStep = 1;

void setup() {
}

void loop() {
analogWrite(Green, 0);
analogWrite(Blue, 0);
for(int fadeValue = 0 ; fadeValue <=254; fadeValue +=fadeStep) {
analogWrite (Red, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 0 ; fadeValue <=254; fadeValue +=fadeStep) {
analogWrite (Blue, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 254 ; fadeValue >= 0; fadeValue -=fadeStep) {
analogWrite(Red, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 0 ; fadeValue <=254; fadeValue +=fadeStep) {
analogWrite (Green, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 254 ; fadeValue >= 0; fadeValue -=fadeStep) {
analogWrite(Blue, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 0 ; fadeValue <=254; fadeValue +=fadeStep) {
analogWrite (Red, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 254 ; fadeValue >= 0; fadeValue -=fadeStep) {
analogWrite(Green, fadeValue);
delay(fadeDelay);
}
for(int fadeValue = 254 ; fadeValue >= 0; fadeValue -=fadeStep) {
analogWrite(Red, fadeValue);
delay(fadeDelay);
}
}
